<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>分类浏览</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/wx-iconfont.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/gwcxd/classes"],
            cb: function (o) {

                // 不影响初始页面的js, 可以延迟引入
                app.requireCss(['css/wx/icons-extra', 'css/wx/wx-iconfont'], doc);

            }
        };
    </script>
    <script data-main="../../../js/wx/public/config.js" src="../../../js/require.js"></script>
    <style>
        .mui-content {
            padding: 0;
        }

        .mui-row.mui-fullscreen > [class*="mui-col-"] {
            height: 100%;
        }

        .mui-col-xs-3,
        .mui-col-xs-9 {
            /*overflow-y: auto;*/
            height: 100%;
        }

        .mui-segmented-control .mui-control-item {
            line-height: 50px;
            width: 100%;
            font-size: 14px;
        }

        .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
            background-color: #fff;
        }

        .mui-table-view .mui-media-object {
            max-width: 68px;
            height: 68px;
        }

        .mui-table-view-cell {
            padding: 11px 10px;
        }

        .mui-control-content {
            position: absolute;
            background-color: #fff;
        }

        .mui-table-view:before, .mui-table-view:after {
            height: 0;
        }

        .search3 span.leftIco {
            left: 131px;
        }

        h4 {
            font-size: 14px;
        }
        img{
            transform: scale(1.3,1.3);
        }

    </style>
</head>

<body>

<!--搜索-->
<div class="search3">
    <form action="javascript:app.returnFalse();">
        <div id="searchDiv1" class="search">
            <select @change="typeChange" v-model="GWAH001">
                <option v-for="o in types" :value="o.GWAH001">{{o.GWAHL003}}</option>
            </select>
            <input v-model="str" @search="serchData" type="search" class="mui-input-clear hasRigico" placeholder="搜索">
            <span class="iconfont icon icon-007 leftIco"></span>
        </div>
    </form>
</div>
<!--列表-->
<div class="mui-content mui-row mui-fullscreen wf-imgBox" style="top: 58px;bottom: 58px;">
    <div class="mui-col-xs-3">
        <div id="scrollleft" class="mui-scroll-wrapper">
            <div class="mui-scroll">
                <div id="segmentedControls"
                     class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-vertical">

                    <template v-for="(val,key) in catalogs">
                        <a @tap="showCatalogGoods(key,val.GWAO001, $event)"
                           :class="['mui-control-item', {'mui-active': key==0}]"
                           :href="'#content'+val.GWAH001+key"
                           :_index="val.GWAH001+key">{{val.GWAOL003}}</a>
                    </template>
                </div>
            </div>
        </div>
    </div>
    <div id="tab-content" class="mui-col-xs-9" style="background-color: #fff"></div>
</div>
<div v-show="show" class="footBtn flexl shadow2" id="footer" style="display: none">
    <button type="button" class="wf-second-bg edit" @tap.stop="gouwuche">购物车</button>
    <button type="button" class="wf-pulic-bg edit" @tap.stop="qianzaishangji">潜在商机</button>
</div>
<script id="classesitem-template" type="text/x-template">
    <ul class="mui-table-view mui-table-view-chevron">
        <li v-for="(val,index) in model" @tap.stop="showDetail(val)" class="mui-table-view-cell">
            <a href="javascript:;" class="mui-navigate">
                <div class="imgBox">
                    <img :src="val.GWAM015 | goodsImgsUtils"/>
                </div>
                <div class="mui-media-body wf-price-color">
                    <h4 class="mui-ellipsis">{{val.GWAML003}}</h4>
                    <p class="mui-ellipsis wf-sfont-color">
                        ￥{{val.GWAP100 | priceFMT}}<span style="color: #000;">/{{val.GWABL003}}</span>
                    </p>
                </div>
            </a>
        </li>
    </ul>
</script>
</body>

</html>